//
// Created on 2024/11/22.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef AVCODECSAMPLE_PLAYER_ENTRY_H
#define AVCODECSAMPLE_PLAYER_ENTRY_H

#include <js_native_api.h>
#include <js_native_api_types.h>
#include "napi/native_api.h"
#include "plugin_manager.h"
#include "player.h"

class Entry {
public:
    static napi_value InitVideo(napi_env env, napi_callback_info info);
    static napi_value StartVideo(napi_env env, napi_callback_info info);
    static napi_value PauseVideo(napi_env env, napi_callback_info info);
    static napi_value ResumeVideo(napi_env env, napi_callback_info info);
    static napi_value VideoSeek(napi_env env, napi_callback_info info);
    static napi_value Kill(napi_env env, napi_callback_info info);
    static napi_value Loop(napi_env env, napi_callback_info info);
};

#endif //AVCODECSAMPLE_PLAYER_ENTRY_H
